package com.book.deprecated.state;

public abstract class DeprecateAbstractOrderState {
    // 订单状态定义 ，待支付，待发货，待收货，订单完成
    protected final String ORDER_WAIT_PAY = "ORDER_WAIT_PAY";
    protected final String ORDER_WAIT_SEND = "ORDER_WAIT_SEND";
    protected final String ORDER_WAIT_RECEIVE = "ORDER_WAIT_RECEIVE";
    protected final String ORDER_FINISH = "ORDER_FINISH";


    // 订单方法定义 -- 创建订单
    protected DeprecatedOrder createOrder(String orderId, String productId, DeprecatedOrderContext context) {
        throw new UnsupportedOperationException();
    }

    // 订单方法定义 -- 订单支付
    protected DeprecatedOrder payOrder(String orderId,   DeprecatedOrderContext context) {
        throw new UnsupportedOperationException();
    }

    // 订单方法定义 -- 订单发送
    protected DeprecatedOrder sendOrder(String orderId,  DeprecatedOrderContext context) {
        throw new UnsupportedOperationException();
    }

    // 订单方法定义 -- 订单签收
    protected DeprecatedOrder receiveOrder(String orderId,   DeprecatedOrderContext context) {
        throw new UnsupportedOperationException();
    }
}
